package index;

import android.content.Context;

import app.auto.runner.base.MapAdapter;
import app.auto.runner.base.RecycleViewAdapter;
import app.auto.runner.base.utility.Cfg;
import app.auto.runner.base.utility.ScreenSchema;
//import picselect.PicSelector;
import thirtparty.LoadingDialog;

public class ComFactory {

    /***
     * 图片选择器
     * @param context
     * @return
     */
//    public PicSelector getPicSelector(Context context) {
//        return PicSelector.reservSin(PicSelector.class, context);
//    }

    /***
     * 分辨率适配器
     * 已适应的靶的分辨率
     * @param width
     * @param height
     * @param dpi
     * @param context
     */
    public static void getScreenSchema_Init(int width, int height, int dpi, Context context) {
        ScreenSchema.initcfg(width, height, dpi);
        ScreenSchema.init(context);
    }

    /***
     * 加载框
     * @param context
     * @return
     */
    public static LoadingDialog getLoadingDialog(Context context) {
        return LoadingDialog.reservSin(LoadingDialog.class, context);
    }
    /***
     * ListView 适配器
     * @param context
     * @return
     */
    public static MapAdapter getMapAdapter(Context context) {
        return MapAdapter.build(context);
    }

    /***
     * RecycleView 适配器
     * @param context
     * @return
     */
    public static RecycleViewAdapter getRecycleViewAdapter(Context context) {
        return RecycleViewAdapter.build(context);
    }



}
